package com.anhry.www.safety.manage.enterprise.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TbCorpPic entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_CORP_PIC")
@SequenceGenerator(name = "TB_CORP_PIC_SEQ", sequenceName = "TB_CORP_PIC_SEQ", allocationSize = 1)
public class TbCorpPic implements java.io.Serializable {

	// Fields

	private Long id;
	private Long corpId;
	private String picType;//图片类型  1企业风貌图2企业平面图3工艺流程图4其他 5 生产装置图
	private String customType;  //类型为其它的时候的备注
	private String picTitle;//标题
	private String picPath;//存储地址
	private String picRemark;//图片说明
	private String isDele;

	// Constructors

	/** default constructor */
	public TbCorpPic() {
	}

	/** minimal constructor */
	public TbCorpPic(Long id) {
		this.id = id;
	}

	/** full constructor */
	public TbCorpPic(Long id, Long corpId, String picType, String picTitle,
			String picPath, String picRemark, String isDele) {
		this.id = id;
		this.corpId = corpId;
		this.picType = picType;
		this.picTitle = picTitle;
		this.picPath = picPath;
		this.picRemark = picRemark;
		this.isDele = isDele;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "TB_CORP_PIC_SEQ")
	@Column(name = "ID", unique = true, nullable = false, precision = 11, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "CORP_ID", precision = 11, scale = 0)
	public Long getCorpId() {
		return this.corpId;
	}

	public void setCorpId(Long corpId) {
		this.corpId = corpId;
	}

	@Column(name = "PIC_TYPE", length = 1)
	public String getPicType() {
		return this.picType;
	}

	public void setPicType(String picType) {
		this.picType = picType;
	}

	@Column(name = "PIC_TITLE")
	public String getPicTitle() {
		return this.picTitle;
	}

	public void setPicTitle(String picTitle) {
		this.picTitle = picTitle;
	}

	@Column(name = "PIC_PATH")
	public String getPicPath() {
		return this.picPath;
	}

	public void setPicPath(String picPath) {
		this.picPath = picPath;
	}

	@Column(name = "PIC_REMARK", length = 500)
	public String getPicRemark() {
		return this.picRemark;
	}

	public void setPicRemark(String picRemark) {
		this.picRemark = picRemark;
	}

	@Column(name = "IS_DELE", length = 1)
	public String getIsDele() {
		return this.isDele;
	}

	public void setIsDele(String isDele) {
		this.isDele = isDele;
	}

	@Column(name="CUSTOM_TYPE", length=100)
	public String getCustomType() {
		return customType;
	}

	public void setCustomType(String customType) {
		this.customType = customType;
	}
    
	
}